package com.lanmao.blog.service;

import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.lanmao.blog.entity.Type;
import com.baomidou.mybatisplus.extension.service.IService;

import java.awt.*;
import java.util.List;

/**
 * <p>
 *  服务类
 * </p>
 *
 * @author lanmao
 * @since 2022-03-13
 */
public interface TypeService extends IService<Type> {


    List<Type> getAllType();

    Page<Type> pageTypes(Long current, Long size);

    List<Type> getTypeByName(String name);

    boolean saveType(Type type);
}
